package com.ym.domain.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ym.domain.dao.MedisService;
import com.ym.domain.mapper.MedisMapper;
import com.ym.domain.model.Medis;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class MedisServiceImpl extends ServiceImpl<MedisMapper, Medis> implements MedisService {

    @Override
    public void deleteRealById(Long id) {
        this.baseMapper.deleteRealById(id);
    }

    @Override
    public void deleteRealMydis(Medis mydis) {
        this.baseMapper.deleteRealMydis(mydis);
    }

    @Override
    public List<Medis> getExpiredKey() {
        return this.baseMapper.getExpiredKey();
    }

}
